package com.wh1200.mybatis.xmlless.inter

import com.fasterxml.jackson.databind.JavaType
import java.lang.reflect.Method

/**
 *
 * @author 吴昊
 * @date 2024/1/17 0:01
 * @since v0.0.0
 * @version 1.0
 */
interface ITypeResolver {

  /**
   * @param method
   * @param clazz
   * @param forceSingleValue
   * @return
   */
  fun resolveReturnJavaType(method: Method, clazz: Class<*>, forceSingleValue: Boolean): JavaType?

  /**
   * @param method
   * @param clazz
   * @return
   */
  fun resolveReturnMappingType(method: Method, clazz: Class<*>): Class<*>?

}
